import logging

from . import blue_index
from flask import render_template, current_app


@blue_index.route('/')
def index():
    logging.debug("This is a debug log.")
    logging.info("This is a info log.")
    logging.warning("This is a warning log.")
    logging.error("This is a error log.")
    logging.critical("This is a critical log.")
    return render_template("news/index.html")


@blue_index.route('/favicon.ico')
def favicon():
    return current_app.send_static_file("news/favicon.ico")

